<!DOCTYPE html>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="EF" uri="/WEB-INF/framework/tlds/EF-2.0.tld" %>
<%String actionUrl = request.getContextPath() + "/DispatchAction.do";%>
<html>
<EF:EFHead includeDefault="true">
<script type="text/javascript" src="./ZM/zm.js"></script>
</EF:EFHead>
<EF:EFBody>
	<EF:EFForm id="ZMCD11"  method="POST" action="<%=actionUrl%>">
		<EF:EFInput type="hidden" ename="fdCreator" cname="编制人名称"/>
		<EF:EFInput type="hidden" ename="fdCreateDepartment" cname="部门名称"/>
		<EF:EFInput type="hidden" ename="fdCreatorId" cname="*编制人"/>
		<EF:EFInput type="hidden" ename="fdCreateDepartmentId" cname="*编制部门"/>
		<EF:EFInput type="hidden" ename="fdSuperDirId" cname="上级目录主键"/>
		<EF:EFInput type="hidden" ename="fdDirType" cname="目录分类"/>
		<EF:EFInput type="hidden" ename="fdDirId" cname="权限中用的外键"/>
		<div id = "ef_region_inqu" title="查询条件" efRegionShowClear=true efRegionSave=true>
			<EF:EFInput blockId="inqu_status" row="0" type="hidden" ename="fdSuperDirId" cname="上级目录主键"/>
			<EF:EFInput blockId="inqu_status" row="0" type="hidden" ename="fdDirType" cname="目录分类"/>
			<EF:EFInput blockId="inqu_status" row="0" type="hidden" ename="fdDirId" cname="权限中用的外键"/>
			<div class="row-fluid"> 
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdDirName" cname="目录名称"/>
				</div>
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdCreatorId" cname="编制人"/>
				</div>
			</div>
		</div> 
		<div id="ef_region_result" title="目录列表" style="overflow: scroll">
				<div id="ef_grid_result" title="页面信息" style="overflow: hidden; height: 320px;"></div>
		</div>
	    <div id = "ef_region_detail" title="部门权限列表" > 
			<div id = "ef_grid_detail"  style="height:320px;"></div>
		</div>
		<EF:EFRegion />  
	   	<EF:EFGrid blockId="result" paintId="ef_grid_result" serviceName="ZMCD11" queryMethod="query"  readonly="false" autoDraw="no" ajax="true">
			<EF:EFColumn ename="fdKeyId" cname="主键" visible="false"></EF:EFColumn>
			<EF:EFComboColumn ename="fdDepartmentId" cname="*编制单位" enable="false" blockName="cmes.cd.department" labelProperty="orgName" valueProperty="orgCode" ></EF:EFComboColumn>
			<EF:EFColumn ename="fdCreatorId" cname="编制人" enable="false"></EF:EFColumn>
			<EF:EFComboColumn ename="fdSuperDirId" cname="上级目录" enable="false" blockName="cmes.cd.dir" labelProperty="dirName" valueProperty="dirCode"></EF:EFComboColumn>
			<EF:EFColumn ename="fdDirType" cname="目录属性" enable="false"></EF:EFColumn>
			<EF:EFColumn ename="fdDirName" cname="*目录名称" validateRegex="/^\S{1,10}$/" validateErrorPrompt="输入1-10个字符，不能输入空格" nullable="false" ></EF:EFColumn>
			<EF:EFColumn ename="fdSerial" cname="序号" validateRegex="/(?=^\d*$).*/" validateErrorPrompt="输入正整数" ></EF:EFColumn>
		</EF:EFGrid>
		<EF:EFGrid blockId="result" paintId="ef_grid_detail"  serviceName="ZMCD13" queryMethod="query"  autoDraw="no" ajax="true">
			<EF:EFColumn ename="fdKeyId" cname="主键" visible="false"></EF:EFColumn>
			<EF:EFComboColumn ename="fdDirId" cname="目录" enable="false"  blockName="cmes.cd.dir" labelProperty="dirName" valueProperty="dirCode"></EF:EFComboColumn>
			<EF:EFComboColumn ename="fdOrgId" cname="*单位名称" nullable="false" blockName="cmes.cd.department" labelProperty="orgName" valueProperty="orgCode" ></EF:EFComboColumn>
			<EF:EFComboColumn ename="fdLimitLevel1" cname="*权限类型" nullable="false" blockName="cmes.cd.limit" labelProperty="display" valueProperty="value" ></EF:EFComboColumn>
		</EF:EFGrid>
	</EF:EFForm> 
</EF:EFBody> 
</html>